<?php
// +----------------------------------------------------------------------
// | ebSIG
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.ebsig.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: liudaojian <liudaojian@ebsig.com>
// +----------------------------------------------------------------------

/**
 * 定时任务路由
 * @author   liudaojian <liudaojian@ebsig.com>
 * @version 1.0
 */
namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;

class TimedTaskRoutes
{

    public function map(Registrar $router)
    {


        $prefix = '/lar/timed-task/';

        $router->get($prefix . 'rpc/goods', 'TimedTask\SyncGoods\SyncGoodsController@query'); //商品数据


        $router->get($prefix .'rpc/goods', 'TimedTask\SyncGoods\SyncGoodsController@queryLogistics');//商品库存


        $router->get($prefix . 'bill/process', 'TimedTask\Bill\BillProcessController@query'); //商品数据


        $router->group(['middleware' => 'timed.task.service', 'prefix' => $prefix], function($router) {

            //后台首页统计数据
            $router->post('backstage/index/stat', 'TimedTask\BackstageIndexStatController@stat');

            /**
             * 集点活动
             */
            $router->post('jd/customer', 'TimedTask\Activity\JdController@getCustomerJd'); //获取会员集点数据

            /**
             * 同步线下数据
             */
            //$router->post('rpc/goods', 'TimedTask\SyncGoods\SyncGoodsController@query'); //商品数据

            /**
             *  拉取快递100信息
             */
            //$router->post('bill/process', 'TimedTask\Bill\BillProcessController@query'); //商品数据

        });

    }

}